import { defineRequest } from "../common"
import { IResult } from "./type"

export default defineRequest(request => {
  return {
    calc(params: any) {
      return request.post<IResult>("/calc", params).then(r => r.data)
    },
  }
})
